package com.zhiyou100.serviceImpl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.MLoginMapper;
import com.zhiyou100.model.MUser;
import com.zhiyou100.service.MLoginService;

@Service
public class MLoginServiceImpl implements MLoginService {

	@Autowired
	private MLoginMapper mLoginMapper;
	
	public MUser login(String mName, String mPassword) {
		
		Map<String,String> map = new HashMap<String, String>();
		map.put("mName", mName);
		map.put("mPassword", mPassword);
		MUser mUser = mLoginMapper.login(map);
		return mUser;
	}

}
